<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;

?>

<?php 

/*@var $form  yii\widgets\ActiveForm */
$form = ActiveForm::begin(['enableClientScript'=>true,
						  'options'=>['class'=>'form-horizontal',
									  'enctype'=>'multipart/form-data'
									 ],
					      'fieldConfig'=>['template'=>'{label}<div class="col-sm-9">{input}{hint}<span class="help-inline col-xs-12 col-sm-7">{error}</span></div>',
										  'labelOptions'=>['class'=>'col-sm-3 control-label no-padding-right'],
										  'inputOptions'=>['class'=>'col-xs-10 col-sm-3'],
										  'errorOptions'=>['class'=>'help-block middle']
						   				 ]]);

?>

<?= $form->field($model,'deliveryName')->textInput()   ?>
<?= $form->field($model, 'deliveryAb')->textInput(['readonly'=>'readonly'])  ?>
<?= $form->field($model, 'linkName')->textInput() ?>
<?= $form->field($model, 'address')->textInput() ?>
<?= $form->field($model, 'linkTel')->textInput() ?>
<?= $form->field($model, 'qq')->textInput() ?>
<?= $form->field($model, 'email')->textInput() ?>
<?= $form->field($model, 'state',['template'=>'{label}{input}<span class="lbl" style="margin-top:5px" ></span>',
								  'labelOptions'=>['style'=>['margin-right'=>'10px',]],
])->input("checkbox",['class'=>'ace ace-switch ace-switch-4','checked'=>'on'])  ?>

<?= html::input('hidden','action','add') ?>

<div class="clearfix form-actions">
	<div class="col-md-offset-3 col-md-9">
<?= html::submitInput("提交",['class'=>'btn btn-danger']) ?>
&nbsp; &nbsp; &nbsp;
<?= html::resetButton("重置",['class'=>'btn btn-danger']) ?>
	</div>
</div>

<?php ActiveForm::end()?>

